import request from '/@/utils/request';

//  获取系统应用列表
export const getAppList = (params?: object) => {
	return request({
		url: '/sysApp/list',
		method: 'get',
		data: params,
	});
}

//  获取系统应用列表
export const getSysAppList = (params?: object) => {
	return request({
		url: '/sysApp/page',
		method: 'get',
		data: params,
	});
}
// 新增应用
export const addNewApp = (params?: object) => {
	return request({
		url: '/sysApp/add',
		method: 'post',
		data: params,
	});
}
// 删除应用
export const deleteApp = (params?: object) => {
	return request({
		url: '/sysApp/delete',
		method: 'post',
		data: params,
	});
}
// 修改应用
export const editApp = (params?: object) => {
	return request({
		url: '/sysApp/edit',
		method: 'post',
		data: params,
	});
}